package perso.marcr.lst.model;

import javax.xml.bind.annotation.XmlRootElement;

import perso.marcr.util.Date;
import perso.marcr.util.Unit;

@XmlRootElement(name = "configuration")
public class Configuration extends DBModel {

	private String jobName = Date.getNow();

	private String description = "";

	private String hostDirectory = "";

	private double byteToCopySize = 1;	
	private Unit byteToCopyUnit = Unit.GO;

	private boolean keepTestFiles = false;

	private boolean executeScenario1 = true;
	private boolean executeScenario2 = true;
	private boolean executeScenario3 = true;
	private boolean executeScenario4 = true;

	/**
	 * Crontab expression.
	 * Example to execute cron every 5s: "0/5 * * * * ? 
	 */
	private String cronExpression = "";

	public String getHostDirectory() {
		return hostDirectory;
	}
	public void setHostDirectory(String hostDirectory) {
		this.hostDirectory = hostDirectory;
	}

	public String getJobName() {
		return jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	public double getByteToCopySize() {
		return byteToCopySize;
	}
	public void setByteToCopySize(double byteToCopySize) {
		this.byteToCopySize = byteToCopySize;
	}
	public Unit getByteToCopyUnit() {
		return byteToCopyUnit;
	}
	public void setByteToCopyUnit(Unit byteToCopyUnit) {
		this.byteToCopyUnit = byteToCopyUnit;
	}
	public boolean isKeepTestFiles() {
		return keepTestFiles;
	}
	public void setKeepTestFiles(boolean keepTestFiles) {
		this.keepTestFiles = keepTestFiles;
	}
	public boolean isExecuteScenario1() {
		return executeScenario1;
	}
	public void setExecuteScenario1(boolean executeScenario1) {
		this.executeScenario1 = executeScenario1;
	}
	public boolean isExecuteScenario2() {
		return executeScenario2;
	}
	public void setExecuteScenario2(boolean executeScenario2) {
		this.executeScenario2 = executeScenario2;
	}
	public boolean isExecuteScenario3() {
		return executeScenario3;
	}
	public void setExecuteScenario3(boolean executeScenario3) {
		this.executeScenario3 = executeScenario3;
	}
	public boolean isExecuteScenario4() {
		return executeScenario4;
	}
	public void setExecuteScenario4(boolean executeScenario4) {
		this.executeScenario4 = executeScenario4;
	}
	public String getCronExpression() {
		return cronExpression;
	}
	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}



}
